<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="/plugins/bootstrap-3.3.7-dist/css/bootstrap.min.css">
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="/plugins/jquery-1.12.4/jquery-1.12.4.min.js" type="text/javascript"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="/plugins/bootstrap-3.3.7-dist/js/bootstrap.min.js" type="text/javascript"></script>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/user" th:action="@{|/user|}" method="post" th:object="${user}" class="form-horizontal" role="form" >
    <input type="hidden" name="id" th:value="*{id}"><br/>
    <div class="form-group" style="margin-top: 150px">
        <label for="name" class="col-sm-5 control-label">姓名：</label>
        <div class="col-sm-3">
            <input type="text" class="form-control" id="name" name="psname" th:value="*{psname}"
                   placeholder="请输入姓名">
        </div>
    </div>
    <div class="form-group">
        <label for="age" class="col-sm-5 control-label">证件号:</label>
        <div class="col-sm-3">
            <input type="text" class="form-control" id="age" name="cardno" th:value="*{cardno}"
                   placeholder="请输入证件号">
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-5 col-sm-5">
            <button type="submit" class="btn btn-default">提交</button>
<!--            <input type="submit" value="提交">-->
        </div>
    </div>
</form>
</body>
</html>